﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
[CustomEditor(typeof(UvUnwrapper))]
public class UvUnwrapperEditor : E_ShowButtons<UvUnwrapper> { }
#endif
public class UvUnwrapper : MonoBehaviour
{
    public Mesh mesh;
    public Vector2[] uv;
    public Vector3[] vs;
    public int vsCount;
    [ShowButton]
    void UnWrapper()
    {
        mesh = GetComponent<SkinnedMeshRenderer>().sharedMesh;
        vs = mesh.vertices;
    }
    private void Update()
    {
        
    }
    [ShowButton]
    void GetInfo()
    {
        mesh = GetComponent<SkinnedMeshRenderer>().sharedMesh;
        uv = mesh.uv;
        vsCount = mesh.vertexCount;
    }
}
